package com.hhf.rpc.core.fault.tolerant.impl;

import com.hhf.rpc.core.fault.tolerant.TolerantStrategy;
import com.hhf.rpc.core.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * @Author hhf
 * @Date 2024/10/20
 * @Description 静默处理
 */
@Slf4j
public class FailSafeTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        log.error("静默处理异常",e);
        return new RpcResponse();
    }
}
